Higher-Order Aspects in Order

نویسنده

  • Éric Tanter
چکیده

In aspect-oriented programming languages, advice evaluation is usually considered as part of the base program evaluation. This is also the case for certain pointcuts, such as if pointcuts in AspectJ, or simply all pointcuts in higher-order aspect languages like AspectScheme. While viewing pointcuts and advice as base level computation clearly distinguishes AOP from reflection, it also comes at a price: because aspects observe base level computation, evaluating pointcuts and advice at the base level can trigger infinite regression. To avoid these pitfalls, aspect languages propose (sometimes insufficient) ad-hoc mechanisms, which make aspect-oriented programming more complex. This paper proposes to clarify the situation by introducing explicit levels of execution in the programming language, thereby allowing aspects to observe and run at specific, possibly different, levels. We adopt a defensive default that avoids infinite regression, and give programmers the means to override this default through explicit level shifting expressions. We implement our proposal as an extension of AspectScheme, and formalize its semantics. This work recognizes that different aspects differ in their intended nature, and shows that structuring execution contexts helps tame the power of aspects and metaprogramming.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Exact Implementation of Multiple Initial Conditions in the DQ Solution of Higher-Order ODEs

The differential quadrature method (DQM) is one of the most elegant and useful approximate methods for solving initial and/or boundary value problems. It is easy to use and also straightforward to implement. However, the conventional DQM is well-known to have some difficulty in implementing multiple initial and/or boundary conditions at a given discrete point. To overcome this difficulty, this ...

متن کامل

Thermal Vibration of Composites and Sandwich Laminates Using Refined Higher Order Zigzag Theory

Vibration of laminated composite and sandwich plate under thermal loading is studied in this paper. A refined higher order theory has been used for the purpose. In order to avoid stress oscillations observed in the implementation of a displacement based finite element, the stress field derived from temperature (initial strains) have been made consistent with total strain field. So far no study ...

متن کامل

Determination of Resonance Frequency of Dominant and Higher Order Modes in Thin and Thick Circular Microstrip Patch Antennas with Superstrate by MWM (RESEARCH NOTE)

An accurate model named as the Modified Wolff Model (MWM) is presented as an efficient CAD tool for determination of resonant frequency of the dominant and higher order modes under the multi-layer condition in thin and thick circular microstrip patch antennas. The effects of dielectric cover on the resonant frequency obtained from MWM have been compared against the result of theoretical method ...

متن کامل

Portfolio Assessment and the Enhancement of Higher Order Thinking through Multiple Intelligence and Dialogic Feedback

The current emphasis on higher order thinking skills (HOTS) has inspired many EFL educators to explore the impact of merging different pedagogical teaching and assessment strategies on the enhancement of thinking skills. Responding to such a growing need to investigate the effect of diverse teaching strategies on HOTS, the present study aimed to explore the impact of the integration of portfoli...

متن کامل

meta-synthesis of professional ethics elements in higher education

Introduction: Educational systems as an engine of growth in social, political, economic and cultural dimensions play a role in different ecosystems. In the meantime, professional ethics is the cornerstone of education because educators play a key role in fostering creative, critical and responsible individuals with a global perspective. However, few studies in the field of professional ethics i...

متن کامل

Semantics and scoping of aspects in higher-order languages

Aspect-oriented software design will need to support languages with first-class and higher-order procedures, such as Ruby, Perl, ML and Scheme. These language features present both challenges and benefits for aspects. On the one hand, they force the designer to carefully address issues of scope that do not arise in first-order languages. On the other hand, these distinctions of scope make it po...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2009